﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Hyt.Web.Mvc
{
    public  class Const
    {
        public static readonly JsonResult JsonSuccess;
        static Const()
        {
            JsonSuccess = new JsonResult
            {
                Data = new
                {
                    success = true
                }
            };
        }
        public static JsonResult JsonError(string msg)
        {
            return new JsonResult
            {
                Data = new
                {
                    success = false,
                    message=msg
                }
            };
        }
    }
}
